import java.io.IOException;

/**
 * User: rmikhaylenko mirusnet@gmail.com
 * Date: 13/08/13
 * Time: 10:19
 */
public class PlayInThread extends Thread {

    private final String execCommand;

    public PlayInThread(String execCommand) {
        this.execCommand = execCommand;
    }

    @Override
    public void run() {
        Process p = null;
        try {
            p = Runtime.getRuntime().exec(execCommand);
           // p.getErrorStream().close();
           // p.getInputStream().close();
           // p.getOutputStream().close();
        } catch (IOException e1) {
            e1.printStackTrace();
        }
    }
}
